home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 18
/
CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso
/
CUCD
/
Magazine
/
PicManager
/
HD-Install
/
Install_HD
< prev
next >
Wrap
Text File
|
1997-07-29
|
8KB
|
397 lines
; $VER: Install_PMPro V1.5 (25.7.97)
; J. Schaefer / Andreas R. Kleinert
; Modified to use LHA by Florian Zeiler
; 4.11.96 : Modif. for PMPro 4 , J. Schaefer
; LHA to PM/system /
; 25.7.97 : Translated to english - J. Schaefer
; Picasso96 Driver added to installation
; Legal controlpad removed
;
(set @app-name "Picture Manager Professional")
;
; OS-Version test
(set #OS_VER (/ (getversion) 65536) )
(if(< #OS_VER 37)
(abort "You need Kickstart/OS V2.04 with WB 2.1! or higher")
)
; Installation-Path
(set #PMProDir (askdir
(prompt "Select installation directory ?"
"\n(A drawer PicManager will be created)")
(help @askdir-help)
(newpath)
(default "Work:")
)
)
; Do not install to RAM
(if(= (getdevice #PMProDir) "RAM")
(abort "It makes no sense to install into RAM-Disk!")
)
; check free HD-Space
(set #dskspace (getdiskspace #PMProDir))
(if(<> #dskspace -1)
(if(< #dskspace 4000000)
(abort "You need more than 4MB Diskspace ("dskspace") !")
)
)
(set #dskspace (getdiskspace "SYS:"))
(if(<> #dskspace -1)
(if(< #dskspace 600000)
(abort "You need more than 600 kb free HD-Space (Workbench) ("dskspace") !")
)
)
; make PicManager drawer
(set #PMProPath (tackon #PMProDir "PicManager"))
(makedir (#PMProPath))
; Set PATH
(set @default-dest #PMProPath)
; Select displaydriver
(set #viewinstall 255)
(set #viewinstall (askoptions
(prompt "Select displaydriver(s) to install")
(choices "PicassoII" "Retina Z2/Z3" "Merlin" "CyberGraphX" "EGS" "OpalVision" "Picasso96")
(default 0)
(help (cat "Only select these driver(s)\n"
"you have installed the coresponding\n"
"GFX-card and/or the coresponding\n"
"driver software!"
)
)
)
)
; delete old files
(delete (tackon #PMProPath "Autostart.prefs" ) (optional "force"))
(delete (tackon #PMProPath "Autostart.prefs.info" ) (optional "force"))
(delete (tackon #PMProPath "PV.config" ) (optional "force"))
(delete (tackon #PMProPath "PV.config.info" ) (optional "force"))
(delete (tackon #PMProPath "PhotoView" ) (optional "force"))
(delete (tackon #PMProPath "PhotoView.info" ) (optional "force"))
(delete (tackon #PMProPath "PicManager.guide" ) (optional "force"))
(delete (tackon #PMProPath "PicManager.guide.info" ) (optional "force"))
(delete (tackon #PMProPath "Graphics.log" ) (optional "force"))
(delete (tackon #PMProPath "Graphics.log.info" ) (optional "force"))
; Create TEMP-DIR to extract lha-files
(set #TempPath (tackon #PMProPath ".tempinstall"))
(makedir (#TempPath))
; CLEANUP TEMP-DIR
; calles if an error occurs
(onerror (P_CLEANUP))
(procedure P_CLEANUP
(delete #TempPath (all) (optional "force"))
)
; ...................Disk 1
; LHA-Extract into TEMP-DIR
; JUERGEN: zusätzlich/stattdessen in Picture-Manager-Verzeichnis kopieren
(copyfiles
(source ( "lha"))
(dest (#TempPath))
)
; Dearchivier-Routine deklarieren
(procedure P_EXPAND #exp_archive #exp_dest
(set #exp_srcpath ( #exp_archive))
(if(= (exists #exp_srcpath) TRUE)
(
(working ("Extracting '%s'" #exp_srcpath))
; JÜRGEN: evtl. #TempPath in wirklichen Pfad von LHA ändern
(set #exp_call ("%s X \"%s\" \"%s/\"" (tackon #TempPath "LHA") #exp_srcpath #exp_dest))
(run #exp_call)
)
(
(abort (cat "On Disk is missing the file " #exp_archive))
)
)
)
; Archive PM_1 and PM_2 in PM-Directory
(P_EXPAND "PM_1.lha" #PMProPath)
(P_EXPAND "PM_2.lha" #PMProPath)
; Copy Piktogram
(copyfiles
(source ("PicManager.inf"))
(dest #PMProDir)
(newname "PicManager.info")
(files)
)
; Copy LHA in PMPro/system
(copyfiles
(source ("lha"))
(dest (tackon #PMProPath "System"))
)
(copyfiles
(source ("Readme.DEMO"))
(dest #PMProPATH)
(newname "Readme")
(files)
)
; ........................Disk 2
; Archive Examples and Help_Docs in PM-Directory
(P_EXPAND "Examples.lha" #PMProPath)
(P_EXPAND "Help_Docs.lha" #PMProPath)
; Archive Library und Drivers ins Tempverzeichnis
(P_EXPAND "Library.lha" #TempPath)
(P_EXPAND "Drivers.lha" #TempPath)
; Install Libraries
; ----------------------
; Rename OLD Superview installation
;
(delete "libs:svobjects.bak" (all) (optional "force"))
(rename "libs:svobjects" "libs:svobjects.bak")
(delete "libs:svoperators.bak" (all) (optional "force"))
(rename "libs:svoperators" "libs:svoperators.bak")
(delete "libs:svdrivers.bak" (all) (optional "force"))
(rename "libs:svdrivers" "libs:svdrivers.bak")
(delete "libs:superview.library.bak" (optional "force"))
(rename "libs:superview.library" "libs:superview.library.bak")
(delete "libs:superviewsupport.library.bak" (optional "force"))
(rename "libs:superviewsupport.library" "libs:superviewsupport.library.bak")
; Copy new SuperView LIB
(makedir "LIBS:svobjects")
(makedir "LIBS:svoperators")
(makedir "LIBS:svdrivers")
(copyfiles
(source (tackon #TempPath "libs/svobjects"))
(dest "libs:svobjects")
(all)
)
(copyfiles
(source (tackon #TempPath "libs/svoperators"))
(dest "libs:svoperators")
(all)
)
(copyfiles
(source (tackon #TempPath "libs/svdrivers"))
(dest "libs:svdrivers")
(all)
)
(copyfiles
(source (tackon #TempPath "libs/superview.library"))
(dest "libs:")
)
(copyfiles
(source (tackon #TempPath "libs/superviewsupport.library"))
(dest "libs:")
)
(copyfiles
(source (tackon #TempPath "libs/pmoperator.library"))
(dest "libs:")
(optional "force")
)
; Locale und Prefs kopieren
(copyfiles
(source (tackon #TempPath "locale"))
(dest "sys:locale")
(all)
)
; Create Superview Directories
(makedir "ENV:SuperView-Library")
(makedir "ENVARC:SuperView-Library")
(copyfiles
(source (tackon #TempPath "prefs"))
(dest "sys:prefs")
(all)
)
; REQTOOLS Lib
;
(copylib
(source (tackon #TempPath "libs/reqtools.library"))
(dest "libs:")
(prompt "A newer version of reqtools.library would be installed")
(help @copylib-help)
)
; Display drivers
; PICASSO II
; ----------
(if (IN #viewinstall 0)
(
(copyfiles
(source (tackon #TempPath "PicassoII.svdriver"))
(dest "sys:libs/svdrivers")
)
(copyfiles
(source (tackon #TempPath "PicassoII.controlpad"))
(dest "envarc:superview-library")
)
(copyfiles
(source (tackon #TempPath "PicassoII.controlpad"))
(dest (tackon #PMProPath "Env"))
)
))
; RETINA
; ------
(if (IN #viewinstall 1)
(
(copyfiles
(source (tackon #TempPath "Retina.svdriver"))
(dest "sys:libs/svdrivers")
)
(copyfiles
(source (tackon #TempPath "Retina.controlpad"))
(dest "envarc:superview-library")
)
(copyfiles
(source (tackon #TempPath "Retina.controlpad"))
(dest (tackon #PMProPath "Env"))
)
))
; MERLIN
; ------
(if (IN #viewinstall 2)
(
(copyfiles
(source (tackon #TempPath "MERLIN.svdriver"))
(dest "sys:libs/svdrivers")
)
))
; CYBERGRAPHX
; -----------
(if (IN #viewinstall 3)
(
(copyfiles
(source (tackon #TempPath "CyberGraphics.svdriver"))
(dest "sys:libs/svdrivers")
)
(copyfiles
(source (tackon #TempPath "CyberGraphics.controlpad"))
(dest "envarc:superview-library")
)
(copyfiles
(source (tackon #TempPath "CyberGraphics.controlpad"))
(dest (tackon #PMProPath "Env"))
)
))
; EGS
; ---
(if (IN #viewinstall 4)
(
(copyfiles
(source (tackon #TempPath "EGS7.svdriver"))
(dest "sys:libs/svdrivers")
)
))
; OPAL
; ----
(if (IN #viewinstall 5)
(
(copyfiles
(source (tackon #TempPath "OPAL.svdriver"))
(dest "sys:libs/svdrivers")
)
))
; PICASSO96
; -----------
(if (IN #viewinstall 6)
(
(copyfiles
(source (tackon #TempPath "Picasso96.svdriver"))
(dest "sys:libs/svdrivers")
)
(copyfiles
(source (tackon #TempPath "Picasso96.controlpad"))
(dest "envarc:superview-library")
)
(copyfiles
(source (tackon #TempPath "Picasso96.controlpad"))
(dest (tackon #PMProPath "Env"))
)
))
; add assign in User-Startup
(startup "Picture Manager Professional"
(prompt "Adding PIC_MANAGER:-Assign to S:User-Startup")
(help @startup-help)
(command "Assign PIC_MANAGER: \"" #PMProPath "\"\n")
(command "Assign VMEM: PIC_MANAGER:Temp\n")
)
(P_CLEANUP)
(exit "Picture Manager Professional is installed.\nPlease reboot your system!")